﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="write.aspx.cs" Inherits="FutureMeWeb.write" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>奥林匹克小组----FutureME</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<link href="style.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/arial.js"></script>
<script type="text/javascript" src="js/cuf_run.js"></script>
<script type="text/javascript" >
             function AddAttachments()
             {
                   document.getElementById('attach').innerText = "继续添加附件";
                 
                   tb = document.getElementById('attAchments');
                   newRow = tb.insertRow();
                   newRow.insertCell().innerHTML = "<input name='File' size='50' type='file'>   <input type=button value='删除' onclick='delFile(this.parentElement.parentElement.rowIndex)'>";
             }
             function delFile(index)
             {
                   document.getElementById('attAchments').deleteRow(index);
                   tb.rows.length > 0?document.getElementById('attach').innerText = "继续添加附件":document.getElementById('attach').innerText = "添加附件";
             }
             </script>
<script language ="javascript" type ="text/javascript" >
            //根据服务器端返回结果，处理页面
            function SetText(str)
            {
     
              if(str=="false")
              {
               document.getElementByIdx ("lbl_note").innerText="名字不能为空!";
               document.getElementByIdx ("btnSend").disabled="true";
              }else
              {
               document.getElementByIdx ("lbl_note").innerText="";
               document.getElementByIdx ("btnSend").disabled="";
      
              }
       
            }
            //触发局部刷新
            function Click()
            {
               var a=document.getElementByIdx ("txtName").value;
              <%=Page.ClientScript.GetCallbackEventReference(this,"a","SetText",null) %>
            }
   
 
</script>

 
</head>
<body>
  <form id="form1" runat="server" enctype="multipart/form-data" >
     <div class="main">

          <div class="header">
            <div class="header_resize">
              <div class="logo"><h1><a href="index.aspx"><span>Future</span> Me <small>A dream for the future</small></a></h1></div>
              <div class="menu_nav">
                <ul>
                  <li><a href="index.aspx">首页</a></li>
                  <li  class="active"><a href="write.aspx">写邮件</a></li>
                  <li><a href="read.aspx">公开邮件</a></li>
                  <li><a href="about.aspx">关于我们</a></li>
                  <li><a href="contact.aspx">联系我们</a></li>
		          <li><a href="#">反馈建议</a></li>
		          <li><a href="support.aspx">支持我们</a> </li>    
                </ul>
              </div>
              <div id="" class="">
			     <table align="right" border="0px" width = "400px" bordercolor ="D792DB" cellspacing="0gpx" cellpadding="10px" >
			    <tr>
			    <td align="right">
                    <font size="4" color="white">
           
                            <asp:LinkButton ID="AccountBtn" runat="server" style="TEXT-DECORATION: none" PostBackUrl="~/modify_information.aspx">我的账户</asp:LinkButton>&nbsp;| 
                            <asp:LinkButton ID="LoginBtn" runat="server" style="TEXT-DECORATION: none" PostBackUrl="~/login.aspx">登陆</asp:LinkButton>&nbsp;
                            <asp:LinkButton ID="LogoffBtn" runat="server" 
                        style="TEXT-DECORATION: none" PostBackUrl="~/login.aspx" 
                        onclick="LogoffBtn_Click">注销</asp:LinkButton>丨
                            <asp:LinkButton ID="RegisterBtn" runat="server" style="TEXT-DECORATION: none" PostBackUrl="~/register.aspx">注册</asp:LinkButton>&nbsp; 
                    </font>
			    </td>
			    </tr>

			    </table>
		       
		    </div>
              <div class="clr"></div>
            </div>
          </div>

          <div class="hbg">&nbsp;</div>

          <div class="content">
            <div class="content_resize">
              <div class="mainbar">
                <div class="article">
                  <h2><span>Write a E-mail to Future</span></h2><div class="clr"></div>
         
                </div>

                <div class="article2">
                   <table  align="left" border="0px" width = "900px"  cellspacing="0gpx" cellpadding="3px" >
                        <tr>
			                <td align="right"  width = "120px">
                                <asp:Label ID="lbl_note" runat="server"  Font-Bold="true" ForeColor="Black"></asp:Label>
                            </td>
			                <td>
                                 <input type ="text" id ="txtName" runat ="server" value ="" onblur ="javascript:Click();" />
                            </td>
                       </tr>
                       <tr>
			                <td align="right"  width = "120px">
                                <asp:Label ID="Label2" runat="server" Text="Emai-Address:" Font-Bold="true" ForeColor="Black"></asp:Label>
                            </td>
			                <td>
                                <asp:TextBox ID="txb_email_address" runat="server"  Width="500" TextMode="Email" onblur ="javascript:Click();"></asp:TextBox>
                            </td>
                       </tr>
                       <tr>
			                <td  align="right"  width = "120px">
                                <asp:Label ID="Label1" runat="server" Text="Subject:" Font-Bold="true" ForeColor="Black"></asp:Label>
                            </td>
			                <td>
                                <asp:TextBox ID="txb_email_title" runat="server" Width="500"></asp:TextBox>
                            </td>
                       </tr>
			           <tr>
			                <td  align="right"  width = "120px">
                                <asp:Label ID="Label3" runat="server" Text="Your-Letter:" Font-Bold="true" ForeColor="Black"></asp:Label>
                            </td>
			                <td rowspan = "3">
                                <asp:TextBox ID="txb_email_content" runat="server" Width="500" Height="200" TextMode="MultiLine" Rows="20"></asp:TextBox>
                            </td>
                           
                       </tr>
                       <tr>
                       </tr>
                       <tr></tr>
                       <tr>
			                <td  align="right"  width = "120px">
                                <asp:Label ID="Label4" runat="server" Text="Send-Time:" Font-Bold="true" ForeColor="Black"></asp:Label>
                            </td>
			                <td>
                               <asp:DropDownList ID="yearList" runat="server" Height="25px" Width="70px">
                                </asp:DropDownList>年

                               <asp:DropDownList ID="monthList" runat="server" Height="25px" Width="70px">
                                </asp:DropDownList>月
                               
                               <asp:DropDownList ID="dayList" runat="server" Height="25px" Width="70px">  
                                </asp:DropDownList>日&nbsp;&nbsp;&nbsp;&nbsp;
                               
                                <asp:DropDownList ID="hourList" runat="server" Height="25px" Width="70px">
                                </asp:DropDownList>时
                               
                                <asp:DropDownList ID="minList" runat="server" Height="25px" Width="70px">
                                </asp:DropDownList>分
                            </td>
                       </tr>
                      
                       <tr>
			                <td  align="right"  width = "120px">
                                <asp:Label ID="Label7" runat="server" Text="Attachment:" Font-Bold="true" ForeColor="Black"></asp:Label>
                            </td>
                            <td>
                            <table id="attAchments"></table>
                                <a id="attach" style="font-family:宋体;font-size:9pt;" title="如果您要发送多个附件，您只需多次点击“继续添加附件”即可, 要注意附件总量不能超过发送限制的大小。" onclick="AddAttachments();"
                         href="javascript:;" name="attach">添加附件</a> 
                  
                
                            </td>
                              
                       </tr>
                       <tr>
			                <td  align="right"  width = "120px">
                                <asp:Label ID="Label5" runat="server" Text="Mail-Type:" Font-Bold="true" ForeColor="Black"></asp:Label>
                            </td>
			                <td class="article3" >
                                <asp:RadioButtonList ID="rbl_email_state" runat="server">
                                    <asp:ListItem Selected="True" Value="private">Private</asp:ListItem>
                                    <asp:ListItem Value="public">Public</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                       </tr>

                       <tr>
                            <td  align="right"  width = "120px">
                                <asp:Label ID="Label6" runat="server" Text="VerificationCode：" Font-Bold="true" ForeColor="Black"></asp:Label>
                            </td>
                            <td>
                                <table width="300" border="0">
                                    <tr>
                                        <td width="122" height="25">
                                             <asp:TextBox ID="txbValidate" runat="server" Height="25px" Width="111px" Visible="true"></asp:TextBox>
                                        </td>
                                        <td  width="122" height="25">
                                            <img src="..\validate.aspx"  alt="看不清，点击换一张" style="cursor:pointer; vertical-align:text-bottom;" />
                                        </td>
                                        
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
			                <td align="right">
                                <asp:Button ID="btnSend" runat="server" Text="发送" width="100px" Height="30px" OnClick="btnSend_Click" />
                            </td>
                       </tr>
                     
                       
                   </table>
                </div>
              </div>
              <div class="sidebar">
                <div class="gadget">
                  <h2 class="star"><span>Future Me</span></h2><div class="clr"></div>
                  <ul class="sb_menu">
                      <li><a href="index.aspx">首页</a></li>
			          <li><a href="write.aspx">写邮件</a></li>
			          <li><a href="read.aspx">公开邮件</a></li>
			          <li><a href="about.aspx">关于我们</a></li>
			          <li><a href="contact.aspx">联系我们</a></li>
			          <li><a href="feedback.aspx">反馈建议</a></li>
		              <li><a href="support.aspx">支持我们</a></li>
                  </ul>
                </div>
                <div class="gadget">
                  <h2 class="star"><b>Links</b></h2><div class="clr"></div>
                  <ul class="ex_menu">
                    <li><a href="http://www.njtu.edu.cn/" title="北交大">北京交通大学</a><br />北京交通大学官网</li>
                    <li><a href="http://zhixing.bjtu.edu.cn/forum.php" title="交大知行论坛">知行论坛</a><br />北京交通大学知行论坛</li>
                    <li><a href="http://cgbt.cn/" title="晨光BT">晨光BT</a><br />晨光BT资源分享网站</li>
                    <li><a href="www.google.com.hk/" title="谷歌">Google</a><br />谷歌</li>
                    <li><a href="http://www.yyets.com/" title="人人影视">YYets</a><br />人人影视</li>
                    <li><a href="www.baidu.com" title="baidu">百度</a><br />百度搜索</li>
                  </ul>
                </div>
              </div>
              <div class="clr"></div>
            </div>
          </div>
          <div class="fbg">
            <div class="fbg_resize">
              <div class="col c1">
                <h2><span>Image Gallery</span></h2>
                <a href="#"><img src="images/pix1.jpg" width="56" height="56" alt="pix" /></a>
                <a href="#"><img src="images/pix2.jpg" width="56" height="56" alt="pix" /></a>
                <a href="#"><img src="images/pix3.jpg" width="56" height="56" alt="pix" /></a>
                <a href="#"><img src="images/pix4.jpg" width="56" height="56" alt="pix" /></a>
                <a href="#"><img src="images/pix5.jpg" width="56" height="56" alt="pix" /></a>
                <a href="#"><img src="images/pix6.jpg" width="56" height="56" alt="pix" /></a>
              </div>
              <div class="col c2">
                <h2>E-mail</h2>
                <p>电子邮件（electronic mail，简称E-mail，标志：@，也被大家昵称为“伊妹儿”），又称电子信箱、电子邮政，它是—种用电子手段提供信息交换的通信方式，是Internet应用最广的服务，通过网络的电子邮件系统，用户可以用非常低廉的价格（不管发送到哪里，都只需负担电话费和网费即可），以非常快速的方式（几秒钟之内可以发送到世界上任何你指定的目的地），与世界上任何一个角落的网络用户联系，这些电子邮件可以是文字、图像、声音等各种方式。同时，用户可以得到大量免费的新闻、专题邮件，并实现轻松的信息搜索。.</p>
              </div>
              <div class="col c3">
                <h2><span>Donate</span></h2>
                <img src="images/white.jpg" width="56" height="56" alt="pix" />
                <p>如果你爱我们的网站，如果你愿意对我们的网站献出你的爱心，请点击下面按钮，对我们进行捐助。<br>谢谢你们，有你们，才有FutureMe的明天！！
		        <a href="#">Learn more...</a></p>
              </div>
              <div class="clr"></div>
            </div>
          </div>
          <div class="footer">
            <div class="footer_resize">
              <p class="lf">&copy; Copyright <a href="#">FutureMe</a>. <a href="#" title="奥林匹克小组" target="_blank">奥林匹克小组</a></p>
              <ul class="fmenu">
                  <li><a href="index.aspx">首页</a></li>
                  <li class="active"><a href="write.aspx">写邮件</a></li>
                  <li><a href="read.aspx">公开邮件</a></li>
                  <li><a href="about.aspx">关于我们</a></li>
                  <li><a href="contact.aspx">联系我们</a></li>
		          <li><a href="feedback.aspx">反馈建议</a></li>
		          <li><a href="support.aspx">支持我们</a></li>
              </ul>
              <div class="clr"></div>
            </div>
          </div>
        </div>
       </form>
</body>
</html>
